package game.server.world;

import game.common.world.Point;
import game.common.world.PointImpl;
import game.common.world.Vector;
import game.common.world.VectorImpl;

public class GameObject extends VectorImpl{
	private String objectName;
	
	private boolean positionChanged = false;
	
	public GameObject(String objectName) {
		super(new VectorImpl(new PointImpl(0,0,0), 0, 0));
		this.objectName = objectName;
	}
	public GameObject(String objectName, Vector v) {
		super(v);
		this.objectName = objectName;
	}
	public GameObject(String objectName, Point p, int dir, int speed) {
		super(p, dir, speed);
		this.objectName = objectName;
	}
	
	public void moveTo(Point point){
		this.copy(point);
		positionChanged = true;
	}
	
	public void setPositionUpdated(){
		positionChanged = false;
	}
	public boolean isPositionChanged(){
		return positionChanged;
	}
	
	public String getObjectName() {
		return objectName;
	}
}
